package com.jk.garden1.controller;

import com.jk.garden1.entity.LevelEntity;
import com.jk.garden1.service.LevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("level")
public class LevelController {
    @Autowired
    private LevelService levelService;

    @RequestMapping("findLevel")
    public List<LevelEntity>findLevel(LevelEntity level){
        return levelService.findLevel(level);
    }
}
